<!DOCTYPE html>
<!-- saved from url=(0149)https://hwid1.vmall.com/CAS/portal/userRegister/regbyphone.html?service=https://www.vmall.com/account/caslogin&loginChannel=26000000&reqClientType=26 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<title>注册_华为帐号
</title> <link href="https://hwid1.vmall.com/CAS/up/common/images/default/hwfavicon.ico" type="image/x-icon" rel="shortcut icon"> 
<link href="{{asset('css/ec.core8.css')}}" rel="stylesheet" type="text/css"> 
<link href="{{asset('css/common8.css')}}" rel="stylesheet" type="text/css"> 
<link href="{{asset('css/zh-cn_css8.css')}}" rel="stylesheet" type="text/css"> 
<link href="{{asset('css/dialog8.css')}}" rel="stylesheet" type="text/css"> 
<script type="text/javascript">var localHttps="https://hwid1.vmall.com/CAS";var currentSiteID="1";</script>
<script src="{{asset('js/jsapi.js')}}" namespace="ec"></script><!--[if lte IE 6]><script>ol.isIE6=true;</script><![endif]--><!--[if IE 7]><script>ol.isIE7=true;</script><![endif]--><!--[if IE 8]><script>ol.isIE8=true;</script><![endif]-->
<script src="{{asset('js/jquery-1.8.2.min.js')}}" id="jsid"></script>
<script src="{{asset('js/ec.core.js')}}"></script>
<script src="https://hwid1.vmall.com/CAS/up/rss_10/js/pc_rss/casui.js?UP_CAS_2.5.2.301"></script>
<script src="{{asset('js/ec.business.js')}}"></script> 
<script src="{{asset('js/commonjs.js')}}"></script>
<script src="{{asset('js/base.js')}}"></script>


<script type="text/javascript">
var rss={
		regprotocol:"您只有同意我们的服务条款，才能进行注册！",
		wrongcode:"验证码错误",
		authcodeerror:"短信验证码错误",
		phoneregfail:"手机注册失败！",	
		inputcode:"请输入验证码",
		emptyphone:"手机号为空，请正确填写",
		error:"手机号不正确",
		agreement:"注册协议",	
		inputpwd:"请输入您的密码",
		pwdlimit:"密码长度为8~32个字符",
		confirmpwd:"确认密码：",
		pwdnotsame:"密码与确认密码不一致",
		inputsmscode:"请输入短信验证码",
		wrongformatsmscode:"验证码错误",
		codeformaterror:"验证码格式错误",	
		inputnumber:"输入手机号",
		resend: "重新获取",
		resend_time:"重新获取 ({0})",
		pwdlength:"8~32个字符",
		confirmpwd:"确认密码：",
		codelength:"短信验证码",
		ignorecase:"不区分大小写",
		checking:"正在检测……",	
		usablephone:"&nbsp;",	
		usableemail:"&nbsp;",	
		timeout:"检测超时！",
		phoneemptyfail:"手机号不能为空！",	
		getsmscodefail:"获取短信验证码失败",
		getsmscode:"获取验证码",
		findpwd:"重置密码",
		phoneexist:	"该手机号已注册！",
		weak:"弱",
		common:	"中",
		strong:	"强",
		lang:"zh-cn",
		reg_isDialog:'0',
		common_js_send_sms_in_min:	"一分钟内只允许请求一次，请稍后重试", 
		common_js_send_sms_in_week:	"超出一周内发送验证码的最大次数",
		common_js_send_sms_in_day:	"获取短信次数太频繁，请明天再试",
		common_js_pwd_format_error:"密码格式错误",
		common_js_pwd_account_same_reverse:"密码不能和帐号或者和帐号的倒序相同",
		modifyUserPwd_input_8_32_chars:"请输入8~32字符",
		modifyUserPwd_input_8_32_complax_chars_desc : "密码由 8-32 位字符组成，需至少包含一个大写字母、一个小写字母和一个数字，建议不与其他密码相同",
		unregisteredphone: "该手机号未被使用，可顺利注册",
		nicknameerror: "不可包含特殊字符",
		nicknameMissingTip: "请输入昵称",
		notnull:"1~20个字符",
		chooseDateTip: "请选择生日的年月日",
		birthdayLimitTip: "生日必须小于当前时间",
		ageLimitTip: "用户必须满足13周岁",
		smsHasSendTo: "短信验证码已经发送至<span class=\"nophonewrap userAccount\">{0}</span>",
		smsSendDefErr: "需要二次登录认证。",
		nicknameLengthLimit: "请输入1~20个字符",
		nickName_exsit:"昵称已存在，请更换。",
		day: "日",
		month: "月",
		year: "年",
		IGetIt: "确定",
		hint: "提示",
		loginOverdue: "当前页面已过期，请刷新当前页面后重试。",
		overload:"系统繁忙，请稍后再试！",
		more_details : "更多详情",
		agree : "同意",
		common_agree_two:"点击“注册”，即表示我同意华为隐私政策与最终用户许可协议。",
		common_agree_two_age:"点击“注册”，即表示我确认已满{0}岁并同意华为隐私政策与最终用户许可协议。",
		register_info_error:"您的注册信息存在错误,请修改",
		uc_cantcreateunder13_title:htmlDecodeJQ("&#26080;&#27861;&#21019;&#24314;&#24080;&#21495;"),
		uc_cantcreateunder13_content:htmlDecodeJQ("&#24180;&#28385;13&#23681;&#25165;&#33021;&#21019;&#24314;&#24080;&#21495;&#12290;&#35831;&#30417;&#25252;&#20154;&#22312;&lt;a class='websettingurl' id='websettingurl' target='_blank'&gt;WEB&#24080;&#21495;&#35774;&#32622;&lt;/a&gt;&#20013;&#21019;&#24314;&#20799;&#31461;&#24080;&#21495;&#12290;"),
		iKnowBtn:"确定",
		now_register_x_account:htmlDecodeJQ("&#24744;&#27491;&#22312;&#27880;&#20876;{0}&#30340;&#21326;&#20026;&#24080;&#21495;&#12290;"),
		notCurrentSiteWarning: htmlDecodeJQ("&#24744;&#27880;&#20876;&#26102;&#36873;&#25321;&#30340;&#22269;&#23478;&#19982;&#24403;&#21069;&#20026;&#24744;&#25552;&#20379;&#26381;&#21153;&#30340;&#26412;&#22320;&#25968;&#25454;&#20013;&#24515;&#19981;&#22312;&#21516;&#19968;&#21306;&#22495;&#65292;&#25105;&#20204;&#23558;&#36890;&#36807;&#26412;&#22320;&#25968;&#25454;&#20013;&#24515;&#20013;&#36716;&#21040;&#24744;&#25152;&#36873;&#22269;&#23478;&#25152;&#22312;&#25968;&#25454;&#20013;&#24515;&#20026;&#24744;&#25552;&#20379;&#26381;&#21153;&#12290;&lt;br/&gt;&#21516;&#26102;,&#24744;&#20351;&#29992;&#30340;&#26412;&#22320;&#26381;&#21153;&#23558;&#35775;&#38382;&#24744;&#27880;&#20876;&#21306;&#22495;&#30340;&#24080;&#21495;&#20449;&#24687;"),
		common_I_know:htmlDecodeJQ("&#30693;&#36947;&#20102;"),
		error_70001201: "系统繁忙，请稍后再试！",
		error_10002073: "密码不符合规则",
		error_10000001: "系统繁忙，请稍后再试！",
		error_70001401: "系统内部错误",
		error_70005002: "昵称已经存在",
		error_70005003: htmlDecodeJQ("&#19981;&#21487;&#21253;&#21547;&#21463;&#38480;&#21046;&#25991;&#23383;"),
		error_70007007: "儿童不能同意“家长同意书”",
		error_70007001: "监护人监护的儿童超过上限",
		error_70007003: "监护人年龄必须大于18岁",
		error_70007004: "监护人没有同意“家长同意书”",
		error_70002003: "监护人帐号或者密码错误",
		error_70006606: "监护人帐号不能为用户名帐号（非邮箱非手机）",
		error_70002067: "不在服务区(您所在的地方暂未开通服务)",
		error_70002033: "不能注册@inner.up.huawei后缀的邮件地址",
		error_70002018: "发送激活邮件失败。",
		error_70002057: "验证码已连续错误超过三次",
		error_70002058: htmlDecodeJQ("&#36755;&#20837;&#30340;&#39564;&#35777;&#30721;&#38169;&#35823;&#27425;&#25968;&#36807;&#22810;&#65292;&#35831;&#26126;&#22825;&#20877;&#35797;"),
		error_70002039: "验证码不存在或已过期",
		error_10000002: "不提供服务",
		error_10000004: "非法操作!",
		error_70002002: "帐号已存在",
		error_70002070: "密码复杂度过低",
		error_70002001: "用户不存在",
		error_70006009: "不允许用户短信找回密码",
		error_70002028: "用户没有传入的手机号",
		error_70002046: "手机号已经激活",
		error_70002030: "短信验证码发送失败",
		error_70001102: "获取验证码短信次数较为频繁， 1小时后可重试。",
		error_70001104: "获取验证码短信次数过于频繁， 24小时后可重试",
		error_70008001: "不可是常见密码或弱密码"
};

var localInfo = {
		reqClientType:"26",
		loginChannel:"26000000",
		service:"https://www.vmall.com/account/caslogin",
		loginUrl:"https://hwid1.vmall.com/CAS/portal/login.html",
		accountType:"2",
		remoteLogin:"https://hwid1.vmall.com/CAS/remoteLogin",
		submit:"true",
		lang:"zh-cn",
		getpasswordlink:"https://hwid1.vmall.com/CAS/portal/resetPwd/forgetbyid.html?reqClientType=26",
		urlQurey:"?reqClientType=26&loginChannel=26000000&countryCode=cn&loginUrl=https%3A%2F%2Fhwid1.vmall.com%2FCAS%2Fportal%2Flogin.html&service=https%3A%2F%2Fwww.vmall.com%2Faccount%2Fcaslogin&lang=zh-cn&themeName=red",
		currentSiteID:"1",
		countryCodes:"+86(中国)|cn,",
		items_year:"[N-year, 2017-2017, 2016-2016, 2015-2015, 2014-2014, 2013-2013, 2012-2012, 2011-2011, 2010-2010, 2009-2009, 2008-2008, 2007-2007, 2006-2006, 2005-2005, 2004-2004, 2003-2003, 2002-2002, 2001-2001, 2000-2000, 1999-1999, 1998-1998, 1997-1997, 1996-1996, 1995-1995, 1994-1994, 1993-1993, 1992-1992, 1991-1991, 1990-1990, 1989-1989, 1988-1988, 1987-1987, 1986-1986, 1985-1985, 1984-1984, 1983-1983, 1982-1982, 1981-1981, 1980-1980, 1979-1979, 1978-1978, 1977-1977, 1976-1976, 1975-1975, 1974-1974, 1973-1973, 1972-1972, 1971-1971, 1970-1970, 1969-1969, 1968-1968, 1967-1967, 1966-1966, 1965-1965, 1964-1964, 1963-1963, 1962-1962, 1961-1961, 1960-1960, 1959-1959, 1958-1958, 1957-1957, 1956-1956, 1955-1955, 1954-1954, 1953-1953, 1952-1952, 1951-1951, 1950-1950, 1949-1949, 1948-1948, 1947-1947, 1946-1946, 1945-1945, 1944-1944, 1943-1943, 1942-1942, 1941-1941, 1940-1940, 1939-1939, 1938-1938, 1937-1937, 1936-1936, 1935-1935, 1934-1934, 1933-1933, 1932-1932, 1931-1931, 1930-1930, 1929-1929, 1928-1928, 1927-1927, 1926-1926, 1925-1925, 1924-1924, 1923-1923, 1922-1922, 1921-1921, 1920-1920, 1919-1919, 1918-1918, 1917-1917, 1916-1916, 1915-1915, 1914-1914, 1913-1913, 1912-1912, 1911-1911, 1910-1910, 1909-1909, 1908-1908, 1907-1907, 1906-1906, 1905-1905, 1904-1904, 1903-1903, 1902-1902, 1901-1901, 1900-1900]",
		items_month:"[N-month, 12-12, 11-11, 10-10, 9-9, 8-8, 7-7, 6-6, 5-5, 4-4, 3-3, 2-2, 1-1]",
		agreementContents:"[Lcom.huawei.termcloud.uniaccount.remote.domain.AgreementContent;@76139d9e",
		agreementContentsStr:"[{'id':'12','siteC':'$countryCode','ver':'10004'},{'id':'2','siteC':'$countryCode','ver':'1.04'},{'id':'0','siteC':'$countryCode','ver':'1.04'}]",
		default_country_code:"0086",
		countryCode:"cn",
		createChildFlag:"false",
		createChildUrl:"https://hwid1.vmall.com/CAS/portal/userCenter/setting.html?reqClientType=26&loginChannel=26000000&countryCode=cn&loginUrl=https%3A%2F%2Fhwid1.vmall.com%2FCAS%2Fportal%2Flogin.html&service=https%3A%2F%2Fwww.vmall.com%2Faccount%2Fcaslogin&lang=zh-cn&themeName=red",
		thirdLoginFlag:"false",
		urlCountryCode:"cn",
		urlCountrySiteID:"1",
		crossSiteRegWarningConfirmed : false,
		currentCountrySiteID: "1",
		formatOk:"https://hwid1.vmall.com/CAS/up/rss_10/css/mobile/standard_rss/images/format_ok.png?UP_CAS_2.5.2.301",
		formatNo:"https://hwid1.vmall.com/CAS/up/rss_10/css/mobile/standard_rss/images/format_no.png?UP_CAS_2.5.2.301"
	};

</script>
<script src="https://hwid1.vmall.com/CAS/up/rss_10/js/pc_rss/casui.js?UP_CAS_2.5.2.301"></script>
<script src="{{asset('js/reg_base.js')}}"></script>

<link href="{{asset('css/dialog.css')}}" rel="stylesheet" type="text/css"> 

<style type="text/css">

.selected {
    padding: 10px;
    cursor: pointer;
    background-image: url("https://hwid1.vmall.com/CAS/up/rss_10/css/portal/common_rss/images/red.png?UP_CAS_2.5.2.301");
    background-repeat: no-repeat;
    position: absolute;
    top: 20px;
}
.pwd-info {
	margin-left: 110px;
    margin-top: 10px;
}
.normal-tips-EMUI5, .gray-tips-EMUI5 {    
	padding: 2px 0;
	font-size: 12px;
    line-height: 12px;
}
.normal-tips {
	font-size: 12px;
    color: #000;
}
.pwd-low-div {width: 33%;background: #ff3320;}
.pwd-strong-div {width: 100%;background: #41ce48;}
#msg_password {
    padding-top: 4px;
    display: block;
    color: #ff3320;
}
.node-input {
    width: 361px;
}
.node {
    margin-top: 25px;
}
.regAgrTitleNew {
    margin-top: 25px;
}
</style>

</head>
<body class="reg">
	 <!-- 头部  -->

<div class="head-background">
	<div class="head_center">
		
		     
			  	<div class="main-logo">
					<img src="{{asset('images/logo2.png')}}">
				</div>
				<div class="website-name" style="color:#fff;">
					<b style="font-size: 23px;margin-top: -4px;float: left;">|</b>
					<b style="font-size: 23px;margin-top: -1px;float: left; margin-left:5px;">华为商城</b>
				</div>
			
		
	</div>
</div> 

	<form action="{{url('/mobile')}}" method="post" name="myform" >
				{{csrf_field()}}

	<div class="wp1 relative">
		<div class="reg-content" id="registerForm">
			<div class="reg-tab">
			
					
				<a href="{{url('/mobile')}}" class="tab-phone sel">手机号</a>
			 	<a href="{{url('/register')}}" class="tab-email">电子邮箱 </a>
					
					
							
			</div>
			<div class="login r">
				已有华为帐号
				<a href="https://hwid1.vmall.com/CAS/remoteLogin?reqClientType=26&loginChannel=26000000&countryCode=cn&loginUrl=https%3A%2F%2Fhwid1.vmall.com%2FCAS%2Fportal%2Flogin.html&service=https%3A%2F%2Fwww.vmall.com%2Faccount%2Fcaslogin&lang=zh-cn&themeName=red" class="login-a" title="登录">登录 </a><span class="ar-eg-opposite">▶</span>
			</div>
			
			<div class="reg-detail">
				<h3 class="reg-title">
					注册华为帐号
				</h3>
				<p class="node-intro">
                	华为帐号适用于访问所有华为服务。
                </p>
                <div class="box-shadow-in"></div> 
                
                
                				<!-- 选择国家开始 -->
				<div class="node" id="chooseCountry" style="display: none;">
					
					<div class="node-title">国家/地区
					</div>
	   				<div class="foot-selectCountry-margin selectCountry-right">
	     				<div class="selectCountryImg_style">
		         			<a href="javascript:void(0);" style="cursor:hand"><div id="selectCountryImg" class="selectCountryImg"></div></a>
		  				</div>	    
	     				<div class="selectedCountry_style">
			     			<div>
						    	<div id="selectedCountry"></div>
						    </div>
					  </div>
					</div>					
					<div id="regXCountry" class="node-intro">不同地区的华为帐号服务可能会有差异。</div>
				</div>
				<div class="box-shadow-in" id="chooseCountryShadow" style="display: none;"></div> 				
				<!-- 选择国家结束 -->
                
                
				<div class="node selfInfo">
					<div class="node-title">个人信息</div>
					<div class="node-intro">出生日期用于确定相应的服务。</div>
					<div class="node-des mkcl">
						<div class="node-input r mkcl bir-node">
							<div class="short">
								<div class="ddrop" id="yearDiv">
									<input type="hidden" id="year" value="N">
								</div>
							</div>
							<div class="short">
								<div class="ddrop" id="monthDiv">
									<input type="hidden" id="month" value="N">
								</div>
							</div>
							<div class="short last">
								<input type="hidden" id="day" value="1">
								<div class="ddrop" id="dateDiv">
								</div>
							</div>
							<span id="birthdayError"></span>
						</div>
						<div class="input-intro">设置生日</div>
					</div>
				</div>
				<div class="box-shadow-in selfInfo"></div> 
				<!-- 华为账号 -->

							@if(session("error"))
					            <p class="login-box-msg" style="color:red;margin-top:30px;margin-left:260px;font-size:20px;">{{session("error")}}</p>
					       @endif  

				<div class="node">
					<div class="node-title">华为帐号</div>
					<div class="node-intro">输入手机号作为您的华为帐号，用于登录、重设密码、验证身份。</div>
					<div class="node-des mkcl">
						<div class="node-input r mkcl">
							<div class="short r">
								<div class="dinput">
									<input type="text" id="username" name="phone" maxlength="50" tabindex="1" class="input-number">
								</div>
								<span id="msg_phone"></span>
							</div>
							<div class="short">
								<div class="ddrop" id="input_languageCode">
									<input type="hidden" id="countryCode" value="0086">
								</div>
							</div>
						</div>
						<div class="input-intro">
							手机号：
						</div>
					</div>
					<div class="node-des mkcl">
						<div class="node-input r">
							<div class="short r">
								<div>
											<span class="dbtn2 r" intervaltime="60" onclick="sendCode()">发送手机验证码</span>
									
									<span id="msg_getPhoneRandomCode" style="position:relative;top:34px;"></span>
								</div>
							</div>
							<div class="short">
								<div class="dinput">
									<input type="text" autocomplete="off" class="verify vam ime-disabled" id="authCode" style="vertical-align: middle;" name="code" maxlength="8" tabindex="3">
								</div>
								<span id="msg_phoneRandomCode"></span>
							</div>
						</div>
						<div class="input-intro">
							验证码：
						</div>
					</div>
				</div>
				<div class="box-shadow-in"></div> 
				
				<div class="node">
					<div class="node-title">设置登录密码</div>
					<div class="node-intro" style="display:none">密码由 8-32 位字符组成，需至少包含一个大写字母、一个小写字母和一个数字，建议不与其他密码相同</div>
					<div class="node-des mkcl">
						<div class="node-input r">
							<div class="dinput" id="pwdDiv">
								<input type="password" autocomplete="off" class="text vam" id="password" name="password" maxlength="32" tabindex="4" onkeyup="onPwdKeyUp(this)">
							</div>
							
							<div>
								<span id="msg_password"></span>
							</div>
						</div>
						<div class="input-intro">
							密码：
						</div>
					</div>
					<div class="node-des mkcl">
						<div class="node-input r">
							<div class="dinput">
								<input type="password" autocomplete="off" class="text vam" name="conpass" maxlength="32" tabindex="5">
							</div>
							<span id="msg_checkPassword"></span>
						</div>
						<div class="input-intro">
							确认密码：
						</div>
						
						<div class="pwd-info">
							<div class="normal-tips-EMUI5 pwd-format-des-head" style="padding:0px;">密码须包含：</div>
							<div id="pwdLength" class="gray-tips-EMUI5 "><img class="pwd-format l" src="./js/format_no.png">   <span>至少8个字符（不超过32个）</span></div>
							<div id="pwdChar" class="gray-tips-EMUI5 "> <img class="pwd-format l" src="./js/format_no.png">  <span>大写与小写字母</span></div>
							<div id="pwdNumber" class="gray-tips-EMUI5 "> <img class="pwd-format l" src="./js/format_no.png">  <span>至少一个数字</span></div>
						</div>
						<div class="pwd-info" style="margin-top: 16px;">
							<div class="normal-tips">
								密码强度：
								<span id="pwdComplexFlag"></span>
							</div>
						</div>
						<div class="pwd-info">
							<div class="line8-EMUI5"><div class="gray-tips" style="width: 361px;"> <div class="pwd-complex"><div id="pwdStong" style="height: 3px;"></div></div> </div></div>
							<div id="pwd-tips" class="normal-tips-EMUI5" style="color:#666;">勿使用其他帐号的密码。</div>
						</div>
					</div>
				</div>
				<div class="box-shadow-in"></div> 

				<div class="regAgrTitleNew node-title">华为帐号服务条款</div>
				
				<div id="agreement">
						<div class="node-intro"><div class="agrLineH">华为将为您创建唯一的华为帐号，来标识您和提供更优服务，且需搜集和处理以下信息：</div><div class="agrLineH marginTop2">•&nbsp;&nbsp;设备信息，包括：IMEI、IMSI、SN、国家/地区、语言、型号和版本号；</div><div class="agrLineH marginTop2">•&nbsp;&nbsp;个人信息，包括：手机号、邮件地址、密码、头像、昵称、生日、姓名和性别；</div><div class="agrLineH marginTop8">上述数据将传输并保存至华为全球的服务器。您可通过销户删除所有个人数据。</div><div class="agrLineH marginTop8">华为帐号用户可以通过手机号或邮件地址搜索到您，并可查看您的公开信息，包括：头像、昵称、城市等。您也可以在华为帐号的设置中关闭此功能。</div></div><div class="agrLineH marginTop8">点击“注册”，即表示您同意上述内容及<a href="https://hwid1.vmall.com/CAS/portal/agreements/userAgreement/zh-cn_userAgreement.html?version=china" target="_blank" class="loginAndRegLink">华为帐号用户协议</a>并确认您已阅读<a href="https://hwid1.vmall.com/CAS/portal/agreements/userPrivacyPolicy/zh-cn_userPrivacyPolicy.html" target="_blank" class="loginAndRegLink">华为隐私政策</a>。</div></div>
					<div class="box-shadow-in"></div> 
				</div>
				<div class="reg-btn" align="center">
				
					<button class="btn btn-reg sel" type="submit" >注册</button>
					<div id="register_msg" class="vam error" style="position:relative;left:35%;"></div>
				</div>
			</div>
			<div class="box-shadow">
			</div>
		</div>
	
<input type="hidden" id="countryRegion" value="1-cn">
	<div id="selectCountryCodeDiv"></div>
	<div id="notCurrentSiteWarning"></div>

</form>	
	<!-- 底部  -->

<style>

.selectCountryImg {
    display: block;
    width: 30px;
    height: 30px;
    background: url("https://hwid1.vmall.com/CAS/up/rss_10/css/mobile/standard_rss/images/down.png?UP_CAS_2.5.2.301") no-repeat;
    background-position-y: 12px;
     
}

</style>
<div class="wp1 ft">
	<div class="reg-content">
		<p class="footer">		
		<a id="foot_EULA" href="https://hwid1.vmall.com/CAS/portal/agreements/userAgreement/zh-cn_userAgreement.html?version=china" class="rule" target="_blank">用户协议</a>
		<em class="foot_em">|</em>
		<a id="foot_privacy" href="https://hwid1.vmall.com/CAS/portal/agreements/userPrivacyPolicy/zh-cn_userPrivacyPolicy.html?version=europe" class="rule" target="_blank">隐私政策</a>	
			<a href="https://hwid1.vmall.com/CAS/portal/userRegister/regbyphone.html?service=https://www.vmall.com/account/caslogin&loginChannel=26000000&reqClientType=26#" target="_blank"><em style="font-style: normal">|</em> </a><a style="padding:0 10px;" target="blank" href="https://hwid1.vmall.com/CAS/portal/faq/faq.html">常见问题</a>
		</p>	
		<p class="footer">Copyright&nbsp;@&nbsp;2011-2017&nbsp;&nbsp;华为软件技术有限公司&nbsp;&nbsp;版权所有&nbsp;&nbsp;保留一切权利&nbsp;&nbsp;苏B2-20070200号&nbsp;|&nbsp;苏ICP备09062682号-9</p>	
	</div>
</div>


	<script src="{{asset('js/registerbyphone.js')}}"></script>
	<script type="text/javascript">
	
		function sendCode(){

				var phone = $('#username').val();
                $.post("{{url('/sendcode')}}",{'_token':"{{csrf_token()}}",'phone':phone},function(data){
                  var data = JSON.parse(data);
                    if(data.status == '0'){
                        alert('验证码发送成功');
					}else{
                        alert('验证码发送失败');
					}

                });
            }

            /*
            function doSubmit(){
                //获取密码并验证
                var password = document.myname.password.value;
                if(uname.match(/^[a-zA-Z0-9_]{6,18}$/)==null){
                    alert("密码格式错误");
                    return false;
                }
                
                //获取邮箱验证
                var phone = document.myname.phone.value;
                if(email.match(/^[1][2345678][0-9]{9}$/)==null){
                    alert("手机格式错误");
                    return false;
                }
                
                return true;
            }
			*/
	
 		$(document).ready(function(){
 			
 			$("#pwdLength span").html($("#pwdLength span").html().format(8,32));
 			$("#pwdNumber span").html($("#pwdNumber span").html().format(1));
 			
 			//drop menu
 			$(".ddrop").click(function() {
 				var open = $(this).data("open");
 				if (!open) {
 				$(this).children('.dpmenu').attr("tabindex", 0).fadeIn(300).focus();
 				$(this).data("open", true);
 				}
 				});

 				$(".dpmenu > li").click(function() {
 				var $p = $(this).closest('.ddrop');
 				$p.children('input').val($(this).data("value"));
 				$p.children('span').text($(this).text());
 				$(this).parent().fadeOut(300, function() {
 				$p.data("open", false);
 				});
 				});

 				$(".dpmenu").blur(function() {
 				$(this).fadeOut(300, function() {
 				$(this).parent().data("open", false);
 				});
 				}); 
				
				
				$(".tick").on("click", function() {
					$(this).data("value") == true ? $(this).trigger("turnoff") : $(this).trigger("turnon");
				}).on("turnon", function() {
					$(this).removeClass("off");
					$(this).data("value", true);
					$(this).trigger("change", [true]);
					if($(".tick.off").length == 0) {
						$("#btnSubmit").addClass("sel");
					}
				}).on("turnoff",function() {
					$(this).addClass("off");
					$(this).data("value", false);
					$(this).trigger("change", [false]);
					$("#btnSubmit").removeClass("sel");
				});
		
				//调整tips样式
		 		$(".lb_opacity_Class").css("padding-top","8px");
				
				//下拉列表

		 	   var contrysArr = localInfo.countryCodes.split(","); 
		 	   changeInputCountryCode(contrysArr);
			    getCountryRegion();
		 	    displayCountry(); 
		 	    
		 	 //年
		 		  var yearItems = listToDropList(localInfo.items_year);	
		 		  $('#yearDiv').DropList({
		 				items: yearItems,
		 				defaultValue:'N',
		 				onChange: function(key, value) {
		 					$("#year").val(key);
		 					if($("#month").val()!="N") {
		 			 			if($("#day").val()!="") {
		 				 			checkBirthday();
		 			 			} else {
		 				 			showDay();
		 			 			}
		 			 		}
		 				}
		 		    });  
		 		    
		 		    //月
		 	      var monthItems = listToDropList(localInfo.items_month);	
		 		  $('#monthDiv').DropList({
		 				items: monthItems,
		 				defaultValue:'N',
		 				onChange: function(key, value) {
		 					$("#month").val(key);
		 					if($("#year").val()!="N") {
		 						if($("#day").val()!="") {
		 				 			checkBirthday();
		 			 			} else {
		 				 			showDay();
		 			 			}
		 			 		}
		 				}
		 		    });
		 		  
		 			//日
		 		  var dateItems1 = [];
		 		  var item1 = {
		 				value:"N",
		 				label:rss.day
		 		  };
		 		  dateItems1.push(item1);
		 		    $('#dateDiv').DropList({
		 				items: dateItems1,
		 				defaultValue:'N',
		 				onChange: function(key, value) {
		 					$("#day").val(key);
		 					if($("#day").val()!="N" && $("#month").val()!="N" && $("#year").val()!="N") {
		 			 			checkBirthday();
		 		 			}
		 				}
		 		    });
			 	    
			 	  
					
				if($("#adDefaultAgreeOrNot").text()=="true")
				{
					$("#adMarketChecked").prop("checked",true);
				}
					
	 	});
		 		
	 	//根据年月获取当月的天数
	 	function getDaysInMonth(year,month){ 
	 		month = parseInt(month,10); //parseInt(number,type)这个函数后面如果不跟第2个参数来表示进制的话，默认是10进制。 
	 		var temp = new Date(year,month,0); 
	 		return temp.getDate(); 
 		}
	 	
	 	//展示默认日期
		function showDay() {
			$("#day").val("");
			$('#dateDiv').empty();
			
			var maxDay = getDaysInMonth($("#year").val(), $("#month").val());
	 	    var items_date = [];
	        items_date[0] = {value:"N",label:rss.day};
	        for (var i = maxDay,j=1; i >= 1; i--,j++)
	        {
	            var item = {
					value:i,
					label:i
				};
	            items_date[j] = item;
	        }
	 	    $('#dateDiv').DropList({
	 			items: items_date,
	 			defaultValue:'N',
	 			onChange: function(key, value) {
						$("#day").val(key);
	 			}
	 	    });
		}
	 	 
			//展示日期
			function showDaydd(dd) {
				dd = Number(dd);
				
				$("#day").val(dd);
				$('#dateDiv').empty();
				
				var maxDay = getDaysInMonth($("#year").val(), $("#month").val());
		 	    var items_date = [];
		        items_date[0] = {value:"N",label:rss.day};
		        for (var i = maxDay,j=1; i >= 1; i--,j++)
		        {
		            var item = {
						value:i,
						label:i
					};
		            items_date[j] = item;
		        }
		 	    $('#dateDiv').DropList({
		 			items: items_date,
		 			defaultValue:dd,
		 			onChange: function(key, value) {
							$("#day").val(key);
		 			}
		 	    });
			}
		
		//把前台传来的list转化成页面下拉列表所需元素
		function listToDropList(list) {
			var items = [];
	 		if (list)
	 		{
	 			var contrysArr = list.split(",");
	 			$.each(contrysArr, function(n, value) {
	 				var temp = value.split("-");
	 				var key = temp[0];
	 				var label = temp[1];
	 				if(key.indexOf(" ")>-1) {
	 					key = key.replace(" ","");
	 				}
	 				if(key.indexOf("[")>-1) {
	 					key = key.replace("[","");
	 				}
	 				if(label.indexOf("]")>-1) {
	 					label = label.replace("]","");
	 				}
	 				if(label.indexOf("year")>-1) {
	 					label = label.replace("year",rss.year);
	 				}
	 				if(label.indexOf("month")>-1) {
	 					label = label.replace("month",rss.month);
	 				}
	 				var item = {
	 					value:key,
	 					label:label
	 				};
	 				items.push(item);
	 			});
	 		}	
	 		return items;
		}
		
		
		//校验密码强度
		function onPwdKeyUp(obj)
		{
			var complex=getPwdComplexity(obj.value);
			var $complexEl =$("#pwdStong")
			if(complex.length&&complex.upLowChar&&complex.number)
				{
			isWeakPassword(obj.value,function(data){
				if(data.isSuccess ==1)
				{
					$complexEl.addClass("pwd-strong-div").removeClass("pwd-low-div").removeClass("pwd-middle-div");
					$('#msg_password').html("");
					$('#pwdDiv').removeClass('input-error-EMUI5');
					$("#pwdComplexFlag").html(rss.strong);
				}	
				else if(data.errorCode=="10000801")
				{
					$complexEl.addClass("pwd-low-div").removeClass("pwd-middle-div").removeClass("pwd-strong-div");
					$('#msg_password').html(rss.error_70008001);
					$('#pwdDiv').addClass('input-error-EMUI5');
					$("#pwdComplexFlag").html(rss.weak);
				}
			})
			}else
			{
				$complexEl.removeClass("pwd-middle-div").removeClass("pwd-low-div").removeClass("pwd-strong-div");
				$('#msg_password').html("");
				$("#pwdComplexFlag").html("");
				$('#pwdDiv').removeClass('input-error-EMUI5');
			}
		
			trriger($("#pwdLength"),complex.length);
			trriger($("#pwdChar"),complex.upLowChar);
			trriger($("#pwdNumber"),complex.number);

			function trriger($el,ok){
				if(ok){
					$el.find("img").attr("src",localInfo.formatOk);
					$el.removeClass("gay-tips-EMUI5").addClass("success-tips-EMUI5");
				}else{
					$el.find("img").attr("src",localInfo.formatNo);
					$el.removeClass("success-tips-EMUI5").addClass("gay-tips-EMUI5");
				}
			}

			if(complex.strong*1<2){
				$("#resetPwdBtn").addClass("disabled");
			}
			else{
				$("#resetPwdBtn").removeClass("disabled");
			}
		}
 	</script>


</body></html>